import request from './index'

// 登录
interface login {
  userName: string
  password: string
}
export function login (data: login) {
  return request({
    method: 'POST',
    url: '/api/login',
    data
  })
}

// 获取菜单列表
export function getMenuList () {
  return request({
    method: 'GET',
    url: '/api/getMenuList'
  })
}

// 登出
export function logout () {
  return request({
    method: 'GET',
    url: '/api/logout'
  })
}
